<?php //echo "<script>localStorage.getItem('idPresentation');</script>";?>
<div class="previews form">
<?php echo $this->Form->create('Preview',array('type' => 'file')); ?>
	<fieldset>
		<legend><?php echo __('Agregar avance'); ?></legend>
	<?php
		echo $this->Form->input('name', array('label' => 'Nombre'));
		echo $this->Form->input('description', array('label' => 'Descripción'));
		echo $this->Form->input('route', array('label' => 'Link video'));
		//echo $this->Form->data['Preview']['presentation_id']=Cache::read('presentation_id');
		//echo $this->Form->input('upload_id');
		echo $this->Form->create('Upload', array('type' => 'file'));
		echo $this->Form->input('file', array('type' => 'file', 'label'=> 'Archivo'));
	?>
		<!--div id="actualizacion">
			
		</div-->
		<!--php/*
   			echo $this->Ajax->remoteTimer(  array(   'url' => array('controller' =>
'previews', 'action' => 'termino'),
                                       'update' => 'actualizacion',
                                       'frequency' => 1
                                    )
                           );*/ ?-->

	</fieldset>
<?php /*echo $this->Js->submit('Enviar', array(
              'update'=>'#actualizar',
              'url' => array('controller' => 'previews', 'action' => 'add'),
            )); /*/echo $this->Form->end(__('Enviar')); ?>
</div>
<!--div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('Lista de Avances'), array('action' => 'index')); ?></li>
		<li><?php echo $this->Html->link(__('Lista de Presentaciones'), array('controller' => 'presentations', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva Presentación'), array('controller' => 'presentations', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Lista de Subidas'), array('controller' => 'uploads', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nueva Subida'), array('controller' => 'uploads', 'action' => 'add')); ?> </li>
	</ul>
</div-->
